namespace hjc {

	export class SimplePanel extends Panel {

		public title: string = '';
		public content: string = '';

		protected init(): void {
			this.name = '简单面板';
			this.$configs.backAlpha = 0.7;
		}

		protected displayed(options?: ViewOptions): void {
			if (!!options) {
				this.title = !!options.title ? options.title : '';
				this.content = !!options.content ? options.content : '';
				if (isBoolean(options.alert)) {
					this.currentState = options.alert ? SkinState.ALERT : SkinState.NORMAL;
					this.invalidateState();
				}
			}
		}
	}
}